<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改终端管理（终端管理的主）')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-terminals-edit" th:object="${terminals}">
            <input name="tid" th:field="*{tid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端设备名称：</label>
                <div class="col-sm-8">
                    <input name="tname" th:field="*{tname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属分组ID：</label>
                <div class="col-sm-8">
                    <input name="aid" th:field="*{aid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属用户编号：</label>
                <div class="col-sm-8">
                    <input name="userid" th:field="*{userid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出厂编号：</label>
                <div class="col-sm-8">
                    <input name="facid" th:field="*{facid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">安装地址：</label>
                <div class="col-sm-8">
                    <input name="address" th:field="*{address}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="note" th:field="*{note}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端接入通信网：</label>
                <div class="col-sm-8">
                    <input name="comstand" th:field="*{comstand}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端接入广播电视网模式：</label>
                <div class="col-sm-8">
                    <input name="broadtel" th:field="*{broadtel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端管理员名称：</label>
                <div class="col-sm-8">
                    <input name="manager" th:field="*{manager}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端管理员电话：</label>
                <div class="col-sm-8">
                    <input name="managertel" th:field="*{managertel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端交互时间：</label>
                <div class="col-sm-8">
                    <input name="intertime" th:field="*{intertime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="createdtime" th:value="${#dates.format(terminals.createdtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端手机号码：</label>
                <div class="col-sm-8">
                    <input name="phone" th:field="*{phone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">RDS码：</label>
                <div class="col-sm-8">
                    <input name="rds" th:field="*{rds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">调频接收频率(终端可收转广播频率 )：</label>
                <div class="col-sm-8">
                    <input name="fmfrequency" th:field="*{fmfrequency}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端流量使用限制，单位MB：</label>
                <div class="col-sm-8">
                    <input name="trafficlimit" th:field="*{trafficlimit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">1:应急广播终端,2:后备能源型终端,3:发射机型终端：</label>
                <div class="col-sm-8">
                    <select name="terminaltype" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最后访问日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="lastaccesstime" th:value="${#dates.format(terminals.lastaccesstime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">现场照片：</label>
                <div class="col-sm-8">
                    <input name="poscene" th:field="*{poscene}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">年耗电量：</label>
                <div class="col-sm-8">
                    <input name="ypowerconsumption" th:field="*{ypowerconsumption}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端在线状态(显示未交互天数)：</label>
                <div class="col-sm-8">
                    <input name="onlinestate" th:field="*{onlinestate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">dcs码：</label>
                <div class="col-sm-8">
                    <input name="dcs" th:field="*{dcs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端供电模式：</label>
                <div class="col-sm-8">
                    <input name="pdmode" th:field="*{pdmode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充电电流：</label>
                <div class="col-sm-8">
                    <input name="chargecurrent" th:field="*{chargecurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">反射功率：</label>
                <div class="col-sm-8">
                    <input name="reflectedpower" th:field="*{reflectedpower}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作电压：</label>
                <div class="col-sm-8">
                    <input name="workvoltage" th:field="*{workvoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发射功率：</label>
                <div class="col-sm-8">
                    <input name="transmitpower" th:field="*{transmitpower}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">对讲接收频率：</label>
                <div class="col-sm-8">
                    <input name="irfrequency" th:field="*{irfrequency}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发射频率：</label>
                <div class="col-sm-8">
                    <input name="transmitfrequency" th:field="*{transmitfrequency}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">流量使用：</label>
                <div class="col-sm-8">
                    <input name="mflowusing" th:field="*{mflowusing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">广播接收频率：</label>
                <div class="col-sm-8">
                    <input name="brfrequency" th:field="*{brfrequency}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端授权号码：</label>
                <div class="col-sm-8">
                    <input name="atphone" th:field="*{atphone}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端音量：</label>
                <div class="col-sm-8">
                    <input name="eovolume" th:field="*{eovolume}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池电压：</label>
                <div class="col-sm-8">
                    <input name="batteryvoltage" th:field="*{batteryvoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">负载电流：</label>
                <div class="col-sm-8">
                    <input name="loadcurrent" th:field="*{loadcurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">心跳包时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="hbtime" th:value="${#dates.format(terminals.hbtime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">维护经费：</label>
                <div class="col-sm-8">
                    <input name="maintenancefunds" th:field="*{maintenancefunds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端经度：</label>
                <div class="col-sm-8">
                    <input name="latitude" th:field="*{latitude}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端纬度：</label>
                <div class="col-sm-8">
                    <input name="longitude" th:field="*{longitude}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/terminals";
        $("#form-terminals-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-terminals-edit').serialize());
            }
        }

        $("input[name='createdtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lastaccesstime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='hbtime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>